/*
 * @Copyright: 2025 Copyright (C) AMCAX, All rights reserved.
 * @Author: Zhang
 * @Date: 2025/7/29 17:44
 * @LastEditTime: 2025/7/29 17:44
 * @LastEditors: Zhang
 * @Description:
 */
import { RJSFSchema, UiSchema } from '@rjsf/utils';
import { CollapseTemplate } from 'nextcae-base';

export enum ModeEnum {
  point_1 = 'one-point',
  point_2 = 'two-point',
  point_3 = 'three-point',
  line = 'line',
  face = 'face',
}
export enum TitleEn {
  PICKUP = '拾取',
  NORMAL = '法向',
}
export enum AxisEnum {
  XY_global = 'XY_global',
  YZ_global = 'YZ_global',
  ZX_global = 'ZX_global',
}
export const schema: RJSFSchema = {
  type: 'object',
  properties: {
    Selection: {
      type: 'object',
      title: '选择',
      properties: {
        Plane: {
          title: '截平面',
          type: 'object',
        },
      },
    },
  },
};

export const uiSchema: UiSchema = {
  Selection: {
    'ui:FieldTemplate': CollapseTemplate,
    'ui:options': { label: false },
    Plane: {
      'ui:field': 'twoPointPlaneField',
      'ui:layout': [3, 7],
    },
  },
};
